﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="Gobal_MainPageMenu.aspx.cs" Inherits="Manage_Gobal_MainPageMenu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
    #new_add_table{ width:98%;border-collapse:collapse; empty-cells:show; margin-left:8px; margin-top:10px; margin-bottom:20px;}
    #new_add_table tr{ height:35px;background:#f6f6f6;}
    #new_add_table tr tdm{ border:#d8d8d8 1px solid; vertical-align:middle;}
    #frb tr td{ border:0px; }
    #new_add_table .open_win{
        display:block;
        float:right;
        margin-right:15px;
    }
    #win_body{ 
        z-index:100;
        width:350px;
        position: fixed;
        display:block;
        bottom: 200px;
        left: 50%;
        margin-left: -150px;
        _position: absolute;
        background-color:#cececd;
        filter:alpha(opacity=85);opacity:0.85;
        _clear: both;
        _top:expression(eval(document.compatMode &&   
               document.compatMode=='CSS1Compat') ?   
               documentElement.scrollTop   
               +(documentElement.clientHeight-this.clientHeight) - 1-200   
               : document.body.scrollTop   
               +(document.body.clientHeight-this.clientHeight) - 1-200); 
        border:1px solid #808080;
    }
    #win_body #win_tb{
        width:100%;
    }
     #win_body #win_tb #win_title td{
        background-color:#507cd1; height:20px; vertical-align:middle; padding-left:5px;
    }
    
    #win_body #win_tb #win_title a{
        display:block;
        float:right;
        width:16px;
        height:16px;
        background:url(<%=ResolveUrl("~/Manage/images/closebutton_hover.gif")%>)  no-repeat;
        filter:alpha(opacity=100);opacity:1;
    }
    #win_body #win_tb #win_title a:hover{
        display:block;
        float:right;
        width:16px;
        height:16px;
        background:url(<%=ResolveUrl("~/Manage/images/closebutton_hover.gif")%>)  no-repeat;
        filter:alpha(opacity=80);opacity:0.8;
    }
    #win_body #win_tb .win_bd {
        padding-top:15px;
    }
    #win_body #win_tb .win_sp{
        margin-left:30px;
        margin-bottom:15px;
    }
</style>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery("#win_body").hide();
            jQuery(".open_win").click(function () {
                jQuery("#win_body").show();
            });
            jQuery(".clo").click(function () {
                jQuery("#win_body").hide();
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table id="new_add_table">
   <tr style=" height:25px; background:url('images/tt_x.gif') repeat-x;">
     <td colspan="2" style=" padding-left:8px; vertical-align:middle;">网站相册列表菜单管理
         <a href='javascript:void(0)' class="open_win">
            <img src='<%=ResolveUrl("~/Manage/images/add.gif")%>' alt="" style="  margin-bottom:-4px; margin-right:-3px;" />
            添加项目
        </a>
     </td>
   </tr>
   <tr>
       <td class="tdm">
             <asp:GridView ID="GridView1" runat="server"  Width="100%" 
                    CellPadding="4" EnableModelValidation="True" ForeColor="#333333" 
                    GridLines="None" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting"
                    OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="id"
                    >
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label ID="id" runat="server" Text='<%#Eval("id")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="相册名称">
                        <ItemTemplate>
                            <%#Eval("pname")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="pname" runat="server" Text=' <%#Eval("pname")%>'></asp:TextBox>
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="链接地址">
                        <ItemTemplate>
                             <%#Eval("url")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="url" runat="server" Text=' <%#Eval("url")%>'></asp:TextBox>
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowEditButton="True" ShowDeleteButton="True"  HeaderText="操作" >
                    </asp:CommandField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            </asp:GridView>
       </td>
   </tr>
</table>
    <div id="win_body">
        <table id="win_tb">
            <tr id="win_title">
                <td>
                    添加
                    <a href="javascript:void(0);" class="clo"></a>
                </td>
            </tr>
            <tr>
                <td class="win_bd">
                    <span class="win_sp"> 相册名称:<asp:TextBox ID="new_pname" runat="server" ></asp:TextBox></span>
                </td>
            </tr>
            <tr >
                <td class="win_bd">
                    <span class="win_sp"> 链接地址:<asp:TextBox ID="new_url" runat="server" ></asp:TextBox></span>
                </td>
            </tr>
            <tr >
                <td class="win_bd">
                    <span style=" margin-left:260px; margin-bottom:15px;display:block;">
                        <asp:Button ID="add" runat="server" Text="确认添加" OnClick="add_Click"   />
                    </span>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

